<%--
  Created by IntelliJ IDEA.
  User: 陈雄涛
  Date: 2022/11/11
  Time: 16:13
  To change this template use File | Settings | File Templates.
--%>
<%@ include file="../common/top.jsp" %>
<div class="w panel">
    <div class="register">
        <p align="center" id="Title">Register</p>
        <p align="center">input information</p>
        <form action="register" method="post" id="registerForm">
            <c:if test="${requestScope.RegisterMsg != null}">
                <p align="center"> <font color="red"> ${requestScope.RegisterMsg}</p>
            </c:if>
            <div class="register" id="register">
                <div class="registerInput">
                    <div class="registerText">Username:</div>
                    <input type="text" class="UserInputs" name="username" id="username"><br />
                </div>
                <div id="feedback" style="text-align: center"></div>
                <div class="registerInput">
                    <div class="registerText">Password:</div>
                    <input type="password" class="UserInputs" name="password"> <br />
                </div>
                <div class="registerInput">
                    <div class="registerText">RepeatPassword:</div>
                    <input type="password" class="UserInputs" name="repeat_password"> <br />
                </div>
            </div>

<%--            <p style="text-align: center">--%>
<%--                Username:<input type="text" name="username" id = "username">--%>
<%--            </p>--%>
<%--                <div id="feedback" style="text-align: center"></div>--%>
<%--            <p style="text-align: center">--%>
<%--                Password:<input type="password" name="password">--%>
<%--            </p>--%>
<%--            <p style="text-align: center;">--%>
<%--                RepeatPassword:<input type="password" name="repeat_password">--%>
<%--            </p>--%>
            <div id="registerButtonContainer">
                <div style="text-align: center">
                    <input type="submit" value="confirm" class="btn" id="my_button">
                </div>
            </div>
        </form>
        <div style="text-align: center;">
            <a href="main">Return to the mainForm.</a>
        </div>
        <script src="js/check-username.js"></script>
    </div>
</div>
<%@ include file="../common/bottom.jsp"%>